package com.jerry.huihome.module.register.fragment;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.jerry.huihome.R;
import com.jerry.huihome.base.BaseFragment;
import com.jerry.huihome.module.register.activity.RegisterActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by LGuipeng on 2016/5/11.
 */
public class MineFragment extends BaseFragment {
    @BindView(R.id.btn_login)
    Button btnLogin;
    @BindView(R.id.btn_register)
    Button btnRegister;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_login_me;
    }

    public MineFragment() {
    }

    @Override
    protected void initViews() {
        super.initViews();
    }

    @Override
    protected void loadData() {

    }


    @OnClick({R.id.btn_login, R.id.btn_register})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_login:
                break;
            case R.id.btn_register:
                Intent intent = new Intent(getContext(), RegisterActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                startActivity(intent);
                break;
        }
    }
}
